#!/usr/bin/env python
#-*- coding:utf-8 -*-

import httplib    
import urllib    
    
def send_get(host='www.baidu.com',port=80):
	data = urllib.urlencode({'@username':'jtest','@password':'jtest', '@funid':23})
	headers = {'Content-type':'application/x-www-form-urlencoded','Accept':'text/plain'}
	conn = httplib.HTTPConnection(host,port)
	conn.request('GET','/',data,headers)
	response=conn.getresponse()
	print response.status
	print response.reason
	print response.read()

                  
if __name__ == '__main__':      
    send_get() 
